/**
 * @file wa_checkbox.h
 *
 */

#ifndef _WA_CHECKBOX_H
#define _WA_CHECKBOX_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
*      INCLUDES
*********************/
#include "wa_conf.h"
#if USE_WA_CHECKBOX != 0
#include <string.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
#include "wa_area.h"
#include "wa_obj.h"
#include "wa_mask_draw.h"
#include "wa_wm.h"
#include "wa_font.h"
#include "wa_image.h"	
/*********************
*      DEFINES
*********************/


/**********************
*      TYPEDEFS
**********************/

typedef struct
{
	wa_result state;
	wa_gui_color fore_color;
	wa_gui_color back_color;
	uint32_t edge_size;
	uint32_t interval;
}wa_checkbox_ext;

/**********************
* GLOBAL PROTOTYPES
**********************/
void wa_checkbox_module_init(void);
wa_obj* wa_checkbox_create(wa_obj* par);
void wa_checkbox_set_state(wa_obj* checkbox, wa_result state);
void wa_checkbox_change_state(wa_obj* checkbox);
void wa_checkbox_set_fore_color(wa_obj* checkbox, wa_gui_color color);
void wa_checkbox_set_back_color(wa_obj* checkbox, wa_gui_color color);
void wa_checkbox_set_edge_size(wa_obj* checkbox, uint32_t size);
void wa_checkbox_set_interval(wa_obj* checkbox, uint32_t interval);
wa_result wa_checkbox_get_state(wa_obj* checkbox);
wa_gui_color wa_checkbox_get_fore_color(wa_obj* checkbox);
wa_gui_color wa_checkbox_get_back_color(wa_obj* checkbox);
uint32_t wa_checkbox_get_edge_size(wa_obj* checkbox);
uint32_t wa_checkbox_get_interval(wa_obj* checkbox);

/**********************
*      MACROS
**********************/

#endif

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif


